package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.modular.system.model.Email;
import com.stylefeng.guns.modular.system.dao.EmailMapper;
import com.stylefeng.guns.modular.system.service.IEmailService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 邮箱地址表 服务实现类
 * </p>
 *
 * @author yuzihao123
 * @since 2018-05-18
 */
@Service
public class EmailServiceImpl extends ServiceImpl<EmailMapper, Email> implements IEmailService {
    @Override
    public int selectLastInsertId() {
        return this.baseMapper.selectLastInsertId();
    }

    @Override
    public Email selectByAddress(String address) {
        return this.baseMapper.selectByAddress(address);
    }

    @Override
    public List<Map<String, Object>> selectEmailLikeAddress(String address, String beginTime, String endTime) {
        return this.baseMapper.selectEmailLikeAddress(address, null, null);
    }
}
